package com.k8s.base.repository;


import com.k8s.base.domain.Dict;
import org.springframework.data.jpa.repository.*;

import java.util.Optional;

/**
 * Spring Data JPA repository for the Dict entity.
 */
@SuppressWarnings("unused")
public interface DictRepository extends JpaRepository<Dict,Long>, JpaSpecificationExecutor<Dict> {

    Dict findFirstByKindAndValue(String kind, String value);

    Optional<Dict> findFirstByKindOrderBySeqDesc(String kind);
}
